Emmanuele Bassi [Mon, 4 May 2015 12:25:27 +0000 (13:25 +0100)]
fontchooser: Use gtk-fontconfig-timestamp setting
We can use the GtkSettings:gtk-fontconfig-timestamp property to decide
whether or not we should reload fonts on style and screen changes. This
should avoid doing a lot of work with large font collections when only
the theme has changed.
https://bugzilla.gnome.org/show_bug.cgi?id=748782
Руслан Ижбулатов [Mon, 4 May 2015 17:18:35 +0000 (17:18 +0000)]
W32: Add a mapping for "left_ptr_watch" cursor
This is purely to support gdk_cursor_new_from_name().
In particular, its counterpart, gdk_cursor_new_for_display(), will not
be affected, because there's no GDK_LEFT_PTR_WATCH cursor type,
and because i don't have a fallback cursor bitmask for gdk/win32/xcursors.h
Руслан Ижбулатов [Mon, 4 May 2015 15:32:22 +0000 (15:32 +0000)]
Use GDK_KEY_KP_Decimal instead of GDK_KP_Decimal
Fixes the FTBFS introduced in
578043f97e891e423648c9f70ddf1d185f4615c4
Matthias Clasen [Mon, 4 May 2015 13:27:02 +0000 (09:27 -0400)]
Fix precondition in gtk_popover_get_default_widget
We need to return a value here.
Jakub Steiner [Mon, 4 May 2015 12:39:40 +0000 (14:39 +0200)]
HC: implement overlay scrollbar theming
while the behavior was in place, the specific theming for
overlay scrollbars was missing, and content was hidden.
Matthias Clasen [Mon, 4 May 2015 12:01:36 +0000 (08:01 -0400)]
Drop PANGO_ENABLE_BACKEND
Not needed for a long time now.
https://bugzilla.gnome.org/show_bug.cgi?id=748783
Matthias Clasen [Sun, 3 May 2015 00:49:17 +0000 (20:49 -0400)]
gtk3-widget-factory: Simplify ui file
Timm Bäder [Sun, 3 May 2015 10:19:18 +0000 (12:19 +0200)]
GtkPopover: Don't ref NULL widgets
gtk_window_get_default_widget returns NULL if the window does not have a
default widget, so don't ref it in that case.
Piotr Drąg [Sun, 3 May 2015 14:33:07 +0000 (16:33 +0200)]
Updated POTFILES.skip
Marek Černocký [Sun, 3 May 2015 11:51:14 +0000 (13:51 +0200)]
Updated Czech translation
Marek Černocký [Sun, 3 May 2015 11:49:35 +0000 (13:49 +0200)]
Updated Czech translation
Matthias Clasen [Fri, 17 Apr 2015 04:14:28 +0000 (00:14 -0400)]
file chooser: Set default widget in create folder popover
This is using the new default widget functionality for
popovers to make Enter in the entry activate the Create
button.
https://bugzilla.gnome.org/show_bug.cgi?id=747664
Matthias Clasen [Fri, 17 Apr 2015 04:10:06 +0000 (00:10 -0400)]
Add default widget handling to popovers
Add a new API, gtk_popover_set_default_widget, that can be
used to make a widget act as default while the popover is
shown. This is useful in dialog-like popovers.
http://bugzilla.gnome.org/show_bug.cgi?id=747664
Matthias Clasen [Sat, 2 May 2015 22:24:20 +0000 (18:24 -0400)]
GtkStatusbar: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:23:20 +0000 (18:23 -0400)]
GtkSearchBar: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:22:30 +0000 (18:22 -0400)]
GtkScaleButton: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:21:38 +0000 (18:21 -0400)]
GtkRecentChooserDefault: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:20:04 +0000 (18:20 -0400)]
GtkPrintUnixDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:17:38 +0000 (18:17 -0400)]
GtkPageSetupUnixDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:11:29 +0000 (18:11 -0400)]
GtkMessageDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:10:37 +0000 (18:10 -0400)]
GtkLockButton: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:05:15 +0000 (18:05 -0400)]
GtkInfoBar: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:04:30 +0000 (18:04 -0400)]
GtkFontChooserWidget: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:03:50 +0000 (18:03 -0400)]
GtkFontChooserDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:03:08 +0000 (18:03 -0400)]
GtkFontButton: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:02:26 +0000 (18:02 -0400)]
GtkFileChooserWidget: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:01:04 +0000 (18:01 -0400)]
GtkFileChooserDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 22:00:15 +0000 (18:00 -0400)]
GtkFileChooserButton: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:59:28 +0000 (17:59 -0400)]
GtkDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:57:28 +0000 (17:57 -0400)]
GtkColorEditor: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:56:40 +0000 (17:56 -0400)]
GtkColorChooserDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:55:52 +0000 (17:55 -0400)]
GtkAssistant: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:53:26 +0000 (17:53 -0400)]
GtkAppChooserWidget: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:49:07 +0000 (17:49 -0400)]
GtkAppChooserDialog: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:39:56 +0000 (17:39 -0400)]
GtkActionBar: Simplify ui template
Matthias Clasen [Sat, 2 May 2015 21:37:54 +0000 (17:37 -0400)]
gtk-builder-tool: Run the tests installed too
Matthias Clasen [Sat, 2 May 2015 21:21:31 +0000 (17:21 -0400)]
gtk-builder-tool: Add some tests
Matthias Clasen [Sat, 2 May 2015 18:41:02 +0000 (14:41 -0400)]
gtk-builder-tool: Some refactoring
Break out similar code into separate functions.
Matthias Clasen [Sat, 2 May 2015 18:39:35 +0000 (14:39 -0400)]
gtk-builder-tool: Strip placeholders
glade likes to sprinkle <child><placeholder/></child> all
over the place - get rid of it.
Matthias Clasen [Sat, 2 May 2015 18:44:15 +0000 (14:44 -0400)]
gtk-builder-tool: Simplify non-translatable properties
Matthias Clasen [Sat, 2 May 2015 17:15:18 +0000 (13:15 -0400)]
gtk-builder-tool: Always emit translatable properties
Seems unlikely that these would ever have a default value,
but better safe than sorry.
Matthias Clasen [Sat, 2 May 2015 16:13:35 +0000 (12:13 -0400)]
gtk-builder-tool: Handle cell properties
These were causing 'unknown property' warnings before.
Yosef Or Boczko [Sat, 2 May 2015 19:22:19 +0000 (22:22 +0300)]
Updated Hebrew translation
Matthias Clasen [Sat, 2 May 2015 15:55:00 +0000 (11:55 -0400)]
docs: Add a note about button 4 & 5
Matthias Clasen [Sat, 2 May 2015 15:51:38 +0000 (11:51 -0400)]
xi2: Don't set button mask 4 and 5
We interpret buttons 4-7 as old-school scroll events, so it does
not make sense to add these to the mask. Also fix an off-by-one
in the loop here, buttons_mask is 1-based.
Matthias Clasen [Sat, 2 May 2015 14:42:15 +0000 (10:42 -0400)]
GtkAboutDialog: Make credits section keyboard navigatable
Its the right thing to do.
Matthias Clasen [Sat, 2 May 2015 14:26:07 +0000 (10:26 -0400)]
GtkAboutDialog: Fix some focus issues
Making a container focusable is rarely the right thing to do.
It typically breaks the focus chain, and makes the container
contents unfocusable, as was the case here.
Matthias Clasen [Sat, 2 May 2015 14:16:55 +0000 (10:16 -0400)]
gtk-builder-tool: Add more exceptions
Matthias Clasen [Sat, 2 May 2015 14:12:54 +0000 (10:12 -0400)]
gtk-builder-tool: Improve docs
Timm Bäder [Sat, 2 May 2015 15:14:38 +0000 (17:14 +0200)]
inspector/misc-info: Fix typo
Cédric Valmary [Sat, 2 May 2015 15:24:35 +0000 (15:24 +0000)]
Updated Occitan translation
Matthias Clasen [Sat, 2 May 2015 11:35:35 +0000 (07:35 -0400)]
gtk-builder-tool: Start an exception list
We have a number of cases where properties should have their
default value overridden in a subclass, but haven't because thats
annoying to do. We also have properties where the absence of
an explicit value has context-dependent meaning.
Add a list of exceptions for these cases.
Matthias Clasen [Sat, 2 May 2015 06:48:19 +0000 (02:48 -0400)]
Fix another ordering issue
Matthias Clasen [Sat, 2 May 2015 06:42:25 +0000 (02:42 -0400)]
GtkPlacesSidebar: Use a popover for renaming bookmarks
This is following the example in gnome-builder.
Matthias Clasen [Sat, 2 May 2015 05:04:01 +0000 (01:04 -0400)]
GtkFileChooser: Fix an ordering issue
The previous commit removed default-valued properties,
but apparently that has a negative effect for grid
packing properties, so put the explicit value back.
Matthias Clasen [Sat, 2 May 2015 03:04:35 +0000 (23:04 -0400)]
GtkFileChooser: Indicate if search comes up empty
This is a neice touch and helps to understand what
is going on.
Matthias Clasen [Fri, 1 May 2015 19:34:08 +0000 (15:34 -0400)]
GtkSearchEngine: Use all search engines
Just using tracker does not work well if you are searching in
non-indexed locations, such as git checkouts or network mounts.
Ideally, we'd decide the 'best' engine to use for each location.
Since that is not easy to do, just run them in parallel for now,
which is the same strategy that nautilus uses.
Руслан Ижбулатов [Thu, 30 Apr 2015 17:46:27 +0000 (17:46 +0000)]
Rewrite simple search engine to use GFile and breadth order
https://bugzilla.gnome.org/show_bug.cgi?id=746916
Matthias Clasen [Fri, 1 May 2015 16:44:11 +0000 (12:44 -0400)]
GtkSearchEngine: Drop unused functionality
Matthias Clasen [Fri, 1 May 2015 11:03:49 +0000 (07:03 -0400)]
win32: Support the decimal point on the keypad
Based on a patch by John Emmas.
Yosef Or Boczko [Fri, 1 May 2015 08:14:58 +0000 (11:14 +0300)]
Update properties Hebrew translation
Yosef Or Boczko [Fri, 1 May 2015 08:14:37 +0000 (11:14 +0300)]
Updated Hebrew translation
Matthias Clasen [Fri, 1 May 2015 02:42:49 +0000 (22:42 -0400)]
Drop a redundant call
g_thread_supported() is always TRUE nowadays, so drop the call.
Matthias Clasen [Fri, 1 May 2015 02:40:45 +0000 (22:40 -0400)]
GtkFileChooser: Use a better busy cursor
It is possible to interact with the file chooser while
things are loading, so use a cursor that indicates this,
if we have one.
Руслан Ижбулатов [Thu, 30 Apr 2015 20:43:18 +0000 (20:43 +0000)]
Fix use-after-free in gdk_window_end_paint()
It's a miracle that this code ever worked.
Piotr Drąg [Thu, 30 Apr 2015 17:13:22 +0000 (19:13 +0200)]
Updated POTFILES.in and POTFILES.skip
William Hua [Thu, 30 Apr 2015 16:41:33 +0000 (12:41 -0400)]
mir: fix build failure due to changed api
Lapo Calamandrei [Thu, 30 Apr 2015 12:37:59 +0000 (14:37 +0200)]
Adwaita: remove duplicated selector.
Chun-wei Fan [Thu, 30 Apr 2015 11:46:56 +0000 (19:46 +0800)]
gdkglcontext-win32.c: Remove Obsolete Comments
We now have proper checks for gdk_screen_is_composited() and a proper
implementation for gdk_screen_get_rgba_visual() for Windows, so we
can remove the comments in this file stating that they aren't
available for Windows.
Matthias Clasen [Thu, 30 Apr 2015 11:46:18 +0000 (07:46 -0400)]
Fix the build
Matthias Clasen [Thu, 30 Apr 2015 11:11:49 +0000 (07:11 -0400)]
gtk-builder-tool: Add an enumerate command
This lists all the named objects from the .ui file.
Matthias Clasen [Thu, 30 Apr 2015 05:18:48 +0000 (01:18 -0400)]
gtk-builder-tool: Validate templates
Catch an error that indicates the file looks like a template,
and then try again, this time with the template parsing API
of GtkBuilder. This is a little iffy, since we need to create
a 'fake' type and instance to pass in, but it works ok in
simple tests.
Matthias Clasen [Thu, 30 Apr 2015 05:21:26 +0000 (01:21 -0400)]
GtkBuilder: Emit a more detailed error for templates
Add the class and parent class name to the error message.
gtk-builder-tool will parse the error message and use the
class names for trying again to parse the file as a template.
Matthias Clasen [Thu, 30 Apr 2015 05:18:09 +0000 (01:18 -0400)]
GtkBuilder: Export the template parsing entry point
This will let gtk-builder-tool validate templates.
Matthias Clasen [Thu, 30 Apr 2015 03:55:59 +0000 (23:55 -0400)]
Adjust tests
Matthias Clasen [Thu, 30 Apr 2015 03:55:07 +0000 (23:55 -0400)]
Convert more GtkBuilder to g_markup_collect_attributes
The core parser itself was left, so handle it as well.
Matthias Clasen [Thu, 30 Apr 2015 01:52:18 +0000 (21:52 -0400)]
Formatting fixes
Alexander Larsson [Thu, 30 Apr 2015 08:26:52 +0000 (10:26 +0200)]
wayland: Don't send bogus values for cursor surface buffer/scale
I was getting really weird values for scale for the blank cursor used
when hiding the cursor in a GtkEntry when typing, this was caused
by gdk_wayland_device_update_window_cursor sending random values
when the returned buffer was NULL.
We fix this by just not sending any buffer or scale updates in this
case.
Руслан Ижбулатов [Wed, 29 Apr 2015 07:31:08 +0000 (07:31 +0000)]
GDK-W32: remove trailing whitespace everywhere
Руслан Ижбулатов [Wed, 29 Apr 2015 07:24:35 +0000 (07:24 +0000)]
W32: bump _WIN32_WINNT and WINVER to 0x600 (Vista)
Move gdkprivate-win32.h include to ensure that this change affects gdkevents-win32.c
Руслан Ижбулатов [Wed, 22 Apr 2015 19:10:55 +0000 (19:10 +0000)]
Enable RGBA windows on W32
Requires Vista and newer.
* Create surfaces with cairo_win32_surface_create_with_format
* Provide an rgba visual that can be distinguished from the system visual
* Make rgba visual the best available visual
* Enable alpha-transparency for all windows that we control
* Check for appropriate cairo capabilities at configure time
(W32 - 1.14.3 newer than 2015-04-14; others - 1.14.0)
* Check for composition support before enabling CSDs
* Re-enable transparency on WM_DWMCOMPOSITIONCHANGED
Windows that were created while composition was enabled and that were CSDed
as a result and will look ugly (thick black borders or no borders at all) once
composition is disabled.
If composition is enabled afterwards, they will return back to normal.
This happens, for example, when RDP session is opened to a desktop where a GTK
application is running. For W7/Vista windows will only re-gain transparency after
the RDP session is closed. For W8 transparency will only be gone momentarily.
Windows that were created while composition was disabled will not be CSDed
automatically and will use SSD (WM decorations), while windows that are CSDed
manually will get a thin square border.
If composition is enabled afterwards, these windows will not change.
This is most noticeable for system menus (popup menus are often generated
on the fly, system menus are created once) and some dialogues (About dialogue,
for example).
https://bugzilla.gnome.org/show_bug.cgi?id=727316
Matthias Clasen [Wed, 29 Apr 2015 19:20:51 +0000 (15:20 -0400)]
Test the new error conditions
Matthias Clasen [Wed, 29 Apr 2015 19:19:31 +0000 (15:19 -0400)]
GtkBuilder: Report more lookup failures as GError
Report failures to lookup objects for property values
and bindings via GError too, and provide location information
while doing so.
https://bugzilla.gnome.org/show_bug.cgi?id=748234
Matthias Clasen [Wed, 29 Apr 2015 18:04:26 +0000 (14:04 -0400)]
Fix inclusion of examples in docs in non-srcdir builds
This is a bit messy, since xsltproc insists on stripping relative
paths to the basename before consulting the paths.
https://bugzilla.gnome.org/show_bug.cgi?id=748640
Yosef Or Boczko [Wed, 29 Apr 2015 11:28:49 +0000 (14:28 +0300)]
Updated Hebrew translation
Matthias Clasen [Tue, 28 Apr 2015 12:38:56 +0000 (08:38 -0400)]
3.17.1
Matthias Clasen [Tue, 28 Apr 2015 14:12:21 +0000 (10:12 -0400)]
Fix distcheck
Simon McVittie [Mon, 20 Apr 2015 13:54:28 +0000 (14:54 +0100)]
Makefile-newvs: some .vcxproj.filters files are in builddir, some in srcdir
Without this change, out-of-tree distcheck doesn't get very far.
Similarly, allow *.vcxproj, *.props to be in either the builddir or
the srcdir.
Finally, since I'm touching these lines anyway, eliminate some
useless uses of cat: "cat x | sed 's/foo/bar/' > y" is
equivalent to "sed 's/foo/bar/' < x > y".
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=748176
Reviewed-by: Chun-wei Fan <fanchunwei@src.gnome.org>
Lapo Calamandrei [Tue, 28 Apr 2015 14:52:46 +0000 (16:52 +0200)]
Adwaita: .title and .subtitle paddings
Only set side paddings for title and subtitle classes, we had 0
vertical padding set there, no idea why, so let's find out...
Matthias Clasen [Tue, 28 Apr 2015 03:31:03 +0000 (23:31 -0400)]
gtk-builder-tool: Separate commands
Add separate commands for validation and simplification.
Matthias Clasen [Tue, 28 Apr 2015 03:08:43 +0000 (23:08 -0400)]
GtkWindow: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:08:28 +0000 (23:08 -0400)]
GtkWidget: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:08:07 +0000 (23:08 -0400)]
GtkSizeGroup: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:07:48 +0000 (23:07 -0400)]
GtkInfoBar: Add a test for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 03:06:06 +0000 (23:06 -0400)]
GtkInfoBar: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:05:49 +0000 (23:05 -0400)]
GtkDialog: Add a test for 'invalid ID'
Matthias Clasen [Tue, 28 Apr 2015 03:03:01 +0000 (23:03 -0400)]
GtkDialog: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 03:01:46 +0000 (23:01 -0400)]
GtkContainer: Add a test for 'invalid ID'
...and add all the container tests to Makefile.am
Matthias Clasen [Tue, 28 Apr 2015 02:59:20 +0000 (22:59 -0400)]
GtkContainer: Use _gtk_builder_lookup_object
Matthias Clasen [Tue, 28 Apr 2015 02:56:53 +0000 (22:56 -0400)]
GtkBuilder: Report 'invalid ID' errors
Look for a stashed GError after calling custom_tag_end,
custom_finished or parser_finished vfuncs, and report
them up.